package com.vanke.devops.api.controller.endpoints.form;

import lombok.Getter;
import lombok.Setter;
import org.hibernate.validator.constraints.NotEmpty;

/**
 * @author 陈景阳
 * @since 2018/3/29
 */
@Getter
@Setter
public class EndpointsForm {

    @NotEmpty(message = "名称不能为空")
    private String name;

    @NotEmpty(message = "IP不能为空")
    private String ip;

    @NotEmpty(message = "阿里云ID不能为空")
    private String instanceId;

    @NotEmpty(message = "分组不能为空")
    private String group;

    @NotEmpty(message = "主机名不能为空")
    private String hostname;

    @NotEmpty(message = "用户名不能为空")
    private String username;

    @NotEmpty(message = "密码不能为空")
    private String password;

    private Integer cpu;

    private Integer memory;

    private Integer disk;

    private String telegrafHostname;
}
